package com.master.train.member.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.master.train.common.utils.PageUtils;
import com.master.train.common.utils.Query;
import com.master.train.member.dao.PassengerDao;
import com.master.train.member.entity.PassengerEntity;
import com.master.train.member.service.PassengerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("passengerService")
public class PassengerServiceImpl extends ServiceImpl<PassengerDao, PassengerEntity> implements PassengerService {
    @Autowired
    PassengerDao passengerDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PassengerEntity> page = this.page(
                new Query<PassengerEntity>().getPage(params),
                new QueryWrapper<PassengerEntity>()
        );
        return new PageUtils(page);
    }



}